//
//  SelectItem.h
//   CareRing
//
//  Created by  on 2023/7/24.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, ITEM_STYLE) {
    NORMAL_STYLE, // 普通模式 点击变打钩
    TITLE_STYLE,  // 纯标题模式
    REMRK_STYLE,  // 右边有文字
    DESC_STYLE,   //灰色,小字
    MORE_STYLE,  // 普通文字 右边是箭头
    REMRK_MORE_STYLE, // 左边文字+右边文字+右边箭头
};

@class SelectItemColorManger;


@interface SelectItem : UIView

@property(strong, nonatomic)UILabel *leftLbl, *rightLbl;

@property(strong, nonatomic)UIImageView *selectImgView;

@property(assign, nonatomic)BOOL selected;

@property(assign, nonatomic)ITEM_STYLE style;

@property(strong, nonatomic)id data;

@property(copy, nonatomic)void (^clickBLK)(SelectItem *view);


-(instancetype)initWithStyle:(ITEM_STYLE)style;

-(void)addBottomSepLine:(UIColor *)lineColor Width:(CGFloat)width;
-(void)setLeftText:(NSString *)text;
-(void)setRightText:(NSString *)text;
-(SelectItemColorManger *)itemColorManager;
@end

@interface SelectItemColorManger : NSObject

@property(strong, nonatomic)UIColor *unselecBgColor, *selectedBgColor;
@property(strong, nonatomic)UIColor *unselecTxtColor, *selectedTxtColor;


@end



NS_ASSUME_NONNULL_END
